NUMPRIMES = 8
primes = [2, 3, 5, 7, 11, 13, 17, 19]

def lib(x, b):
    if b == 0:
        return 0
    else:
        for i in range(NUMPRIMES):
            mod = x % primes[i]
            if mod == 0:
                return 0
    return 1

def client(x):
    if x < 19:
        return lib(20, 1)
    return lib(x, 1)

def main():
    x = 2
    return client(x)